# coding:utf-8
"""
    Create time : 2020/11/4 - 11:11
    Author : Jimy
    Email : 1650015040@qq.com
"""
class UserController(object):
    def __init__(self,model,view):
        self.__model = model
        self.__view = view
    def set_user_username(self,name):
        self.__model.set_username(name)
    def get_user_username(self):
        return self.__model.get_username()
    def set_user_password(self,pwd):
        self.__model.set_password(pwd)
    def get_user_password(self):
        return self.__model.get_password()
    # 登陆
    def execute_login(self):
        self.__view.login(self.get_user_username(),self.get_user_password())
